package com.onec.service.customer.dao.merchant;

import com.onec.service.api.dao.BaseRepository;
import com.onec.service.customer.entity.merchant.MerchantBusiness;
import org.springframework.data.repository.RepositoryDefinition;

/**
 * @author ONEC
 */
@RepositoryDefinition(domainClass = MerchantBusiness.class, idClass = Long.class)
public interface MerchantBusinessRepository extends BaseRepository<MerchantBusiness, Long> {

    MerchantBusiness findByMerchantId(Long id);

    MerchantBusiness findByBusinessNoAndMerchantId(String businessNo, long merchantId);
}
